package com.design.patterns.strategy;

/**
 * @version V1.0
 * @Description： <p> 策略具体执行 </p>
 * @Author xiayong
 * @CreatTime 2020/10/21 16:08
 */
public class PromotionActivity {
    private PromotionStrategy promotionStrategy;

    public PromotionActivity(PromotionStrategy promotionStrategy) {
        this.promotionStrategy = promotionStrategy;
    }

    /**
    * @description: 执行具体策略
    *
    * @return void
    * @author xiayong
    * @date 2020/10/21 16:13
    */
    public void executePromotionStrategy(){
        this.promotionStrategy.doPromotion();
    }
}
